package com.ssh.service.impl;

import java.util.List;

import com.ssh.bean.Users;
import com.ssh.dao.UserDAO;
import com.ssh.service.UserService;

public class UserServiceImpl implements UserService {

	private UserDAO userDao;
	
	public UserDAO getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDAO userDao) {
		this.userDao = userDao;
	}

	public void delete(Users users) {

		this.userDao.removeUsers(users);
	}


	
	public List<Users> findAll() {
		return this.userDao.findAllUsers();
	}

	public Users findById(Integer id) {
		return this.userDao.findUsersById(id);
	}

	public void save(Users users) {

		this.userDao.saveUsers(users);
	}

	public void update(Users users) {

		this.userDao.updateUsers(users);
	}

}
